<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>这是</title>
		<link rel="stylesheet" type="text/css" href="{$webSite}public/css/base.css"/>
	
		<style>
			/*******	主体导航栏  a_head_main 	**********/
			.a_head_main{
				width:1000px;
				min-height:650px;
				float:left;
				margin-left:180px;
				margin-top:120px;
			}
			.main_site1_head{
				width:1000px;
				height:60px;
				border-bottom:1px #DEEFFB solid;
				line-height:50px;
				font-size:16px;
				font-weight:bold;
				color:#09C;
			}
			.main_site1_body{
				width:1000px;
				min-height:70px;
				border-bottom:1px #DEEFFB solid;
			
			}
			.main_site1_body .div1{
				width:1000px;
				height:35px;
				line-height:35px;
				font-size:14px;
				font-weight:bold;
			}
			
			.main_site1_body input{
				width:250px;
				height:20px;
			}
			.main_site1_body input:hover{

				border:1px #53BADC solid;
			}
			.main_site1_body span{
				color:#999;
			}
			.main_site1_body span:hover{	
				color:#000;
			}
			.main_site1_body .put{
				width:12px;
				height:12px;

			}
			.main_site1_head2{
				width:1000px;
				height:30px;
				background:#F3F8FD;
				border-bottom:1px #DEEFFB solid;
				line-height:30px;
				font-size:14px;
				font-weight:bold;
				color:#09C;
			}
			.main_site1_body .btn{
				
				width:60px;
				height:30px;
				background:#7B68EE;
				color:#fff;
				font-size:14px;
				font-weight:bold;
				float:left;
				margin-top:10px;
				margin-left:15px;
			}

			.main_site1_body  img{
				width:60px;
				height:60px;
				margin-bottom:10px;
			}
			.main_site1_body textarea{
				width:250px;
				height:100px;
				text-indent:2em;
				margin-bottom:10px;
				padding-top:10px;
			}
			.main_site1_body textarea:hover{
				border:1px #53BADC solid;
			}
			.main_site1_body select{
				width:250px;
				height:20px;
				margin-top:3px;
			}
			.main_site1_body select:hover{
				border:1px #53BADC solid;
			}
		</style>
	</head>

	<body>
		<!-- 操作主体  a_head_main-->
		<div class="a_head_main">

		{if $resUserDetail}
		{foreach $resUserDetail as $valUserDetail}
			<div class="main_site1_head">编辑用户 - {$valUserDetail['username']}</div>
			
			<!-- form表单 -->
			<form action="{$webSite}admin/admin/admin_user_detail.php" method="post" enctype="multipart/form-data">

			<div class="main_site1_body">
				<div class="div1">用户名:</div>
				&nbsp;{$valUserDetail['username']}
			</div>

			<div class="main_site1_body">
				<div class="div1">头像:</div>
				&nbsp;<img src="{$webSite}{$pic=isset($valUserDetail['picture']) ? $valUserDetail['picture'] : 'public/images/tx.jpg';}">
			</div>


			<div class="main_site1_body">
				<div class="div1">新密码:</div>
				&nbsp;<input type="text" name="newpwd" maxlength="12">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span>如果不更改密码此处请留空</span>
			</div>
			
			<div class="main_site1_body">
				<div class="div1">清除用户安全提问:</div>

				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="put" type="radio" name="isclean" value="1" id="yes" ><label for="yes">是</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

				<input class="put" type="radio" name="isclean" value="0" id="no" checked<label for="no" checked>否</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span>选择“是”将清除用户安全提问，该用户将不需要回答安全提问即可登录；选择“否”为不改变用户的安全提问设置</span>
			</div>

			<div class="main_site1_body">
				<div class="div1">锁定当前用户:</div>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="put" type="radio" name="islock" value="1" id="yes"><label for="yes">是</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input class="put" type="radio" name="islock" value="0" id="no" checked><label for="no">否</label>
			</div>

			<div class="main_site1_body">
				<div class="div1">Email:</div>
				&nbsp;<input type="text" name="email" value="{$valUserDetail['email']}" maxlength="30">
			</div>

			<div class="main_site1_body">
				<div class="div1">注册 IP:</div>
				&nbsp;<input type="text" name="regip"  value="{$t3=long2ip($valUserDetail['regip']);}"  maxlength="20">
			</div>

			<div class="main_site1_body">
				<div class="div1">注册时间:</div>
				&nbsp;<input type="text" name="regtime"  value="{$t3=date('Y-m-d H:i:s' ,$valUserDetail['regtime']);}" maxlength="25">
			</div>
			
			<div class="main_site1_body">
				<div class="div1">上次访问:</div>
				&nbsp;<input type="text" name="lasttime"  value="{$t3=date('Y-m-d H:i:s' ,$valUserDetail['lasttime']);}" maxlength="25">
			</div>

			<div class="main_site1_head2">积分奖惩</div>

			<div class="main_site1_body">
				<div class="div1">积分:</div>
				&nbsp;<input type="text" name="grade" maxlength="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span>直接填写积分的奖惩数值，在原有积分基础上加(或减)，惩罚积分请填写负数</span>
			</div>
			
			<div class="main_site1_head2">论坛选项</div>

			<div class="main_site1_body">
				<div class="div1">签名:</div>
				&nbsp;<textarea name="autograph">{$valUserDetail['autograph']}</textarea>
			</div>

			<div class="main_site1_head2">用户选项</div>

			<div class="main_site1_body">
				<div class="div1">真实姓名:</div>
				&nbsp;<input type="text" name="realname"  value="{$valUserDetail['realname']}"  maxlength="20">
			</div>

			<div class="main_site1_body">
				<div class="div1">性别:</div>
				&nbsp;<select name="sex" id="sex" class="ps">
				{if $valUserDetail['sex'] != 0}
					<option value="{$valUserDetail['sex']}">{$sex=$valUserDetail['sex'] == 1 ? '女' : '男';}</option>
				{else}
					<option value="0">保密</option>
				{/if}
					<option value="0">保密</option>
					<option value="1">女</option>
					<option value="2">男</option>
				</select> 
			</div>
			
			<div class="main_site1_body">
				<div class="div1">生日:</div>
				<div>
					&nbsp;<select name="birthyear" id="birthyear" class="user_detail_body2_put1" onchange="showbirthday();">
					{if $valUserDetail['birthday']}
						<option value="{$day=date('Y' , $valUserDetail['birthday'])}">{$day=date('Y' , $valUserDetail['birthday'])}</option>
					{else}
						<option value="0">年</option>
					{/if}
						<option value="2017">2017</option>
						<option value="2016">2016</option>
						<option value="2015">2015</option>
						<option value="2014">2014</option>
						<option value="2013">2013</option>
						<option value="2012">2012</option>
						<option value="2011">2011</option>
						<option value="2010">2010</option>
						<option value="2009">2009</option>
						<option value="2008">2008</option>
						<option value="2007">2007</option>
						<option value="2006">2006</option>
						<option value="2005">2005</option>
						<option value="2004">2004</option>
						<option value="2003">2003</option>
						<option value="2002">2002</option>
						<option value="2001">2001</option>
						<option value="2000">2000</option>
						<option value="1999">1999</option>
						<option value="1998">1998</option>
						<option value="1997">1997</option>
						<option value="1996">1996</option>
						<option value="1995">1995</option>
						<option value="1994">1994</option>
						<option value="1993">1993</option>
						<option value="1992">1992</option>
						<option value="1991">1991</option>
						<option value="1990">1990</option>
						<option value="1989">1989</option>
						<option value="1988">1988</option>
						<option value="1987">1987</option>
						<option value="1986">1986</option>
						<option value="1985">1985</option>
						<option value="1984">1984</option>
						<option value="1983">1983</option>
						<option value="1982">1982</option>
						<option value="1981">1981</option>
						<option value="1980">1980</option>
						<option value="1979">1979</option>
						<option value="1978">1978</option>
						<option value="1977">1977</option>
						<option value="1976">1976</option>
						<option value="1975">1975</option>
						<option value="1974">1974</option>
						<option value="1973">1973</option>
						<option value="1972">1972</option>
						<option value="1971">1971</option>
						<option value="1970">1970</option>
						<option value="1969">1969</option>
						<option value="1968">1968</option>
						<option value="1967">1967</option>
						<option value="1966">1966</option>
						<option value="1965">1965</option>
						<option value="1964">1964</option>
						<option value="1963">1963</option>
						<option value="1962">1962</option>
						<option value="1961">1961</option>
						<option value="1960">1960</option>
						<option value="1959">1959</option>
						<option value="1958">1958</option>
						<option value="1957">1957</option>
						<option value="1956">1956</option>
						<option value="1955">1955</option>
						<option value="1954">1954</option>
						<option value="1953">1953</option>
						<option value="1952">1952</option>
						<option value="1951">1951</option>
						<option value="1950">1950</option>
						<option value="1949">1949</option>
						<option value="1948">1948</option>
						<option value="1947">1947</option>
						<option value="1946">1946</option>
						<option value="1945">1945</option>
						<option value="1944">1944</option>
						<option value="1943">1943</option>
						<option value="1942">1942</option>
						<option value="1941">1941</option>
						<option value="1940">1940</option>
						<option value="1939">1939</option>
						<option value="1938">1938</option>
						<option value="1937">1937</option>
						<option value="1936">1936</option>
						<option value="1935">1935</option>
						<option value="1934">1934</option>
						<option value="1933">1933</option>
						<option value="1932">1932</option>
						<option value="1931">1931</option>
						<option value="1930">1930</option>
						<option value="1929">1929</option>
						<option value="1928">1928</option>
						<option value="1927">1927</option>
						<option value="1926">1926</option>
						<option value="1925">1925</option>
						<option value="1924">1924</option>
						<option value="1923">1923</option>
						<option value="1922">1922</option>
						<option value="1921">1921</option>
						<option value="1920">1920</option>
						<option value="1919">1919</option>
						<option value="1918">1918</option>
					</select>
				</div>
				<div>
					&nbsp;<select name="birthmonth" id="birthmonth" class="user_detail_body2_put1">
					{if $valUserDetail['birthday']}
						<option value="{$day=date('m' , $valUserDetail['birthday'])}">{$day=date('m' , $valUserDetail['birthday'])}</option>
					{else}
						<option value="0">月</option>
					{/if}
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
						<option value="11">11</option>
						<option value="12">12</option>
					</select>
				</div>

				<div>
					&nbsp;<select name="birthday" id="birthday" class="user_detail_body2_put1">
					{if $valUserDetail['birthday']}
						<option value="{$day=date('d' , $valUserDetail['birthday'])}">{$day=date('d' , $valUserDetail['birthday'])}</option>
					{else}
						<option value="0">日</option>
					{/if}
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
						<option value="11">11</option>
						<option value="12">12</option>
						<option value="13">13</option>
						<option value="14">14</option>
						<option value="15">15</option>
						<option value="16">16</option>
						<option value="17">17</option>
						<option value="18">18</option>
						<option value="19">19</option>
						<option value="20">20</option>
						<option value="21">21</option>
						<option value="22">22</option>
						<option value="23">23</option>
						<option value="24">24</option>
						<option value="25">25</option>
						<option value="26">26</option>
						<option value="27">27</option>
						<option value="28">28</option>
						<option value="29">29</option>
						<option value="30">30</option>
						<option value="31">31</option>
					</select>

				</div>
				
			</div>

			<div class="main_site1_body">
				<div class="div1">籍贯:</div>
				&nbsp;<select name="place" id="place" class="user_detail_body2_put1">
				{if $valUserDetail['place']}
					<option value="">{$valUserDetail['place']}</option>
				{else}
					<option value="">-省份-</option>
				{/if}
					<option did="1" value="北京市">北京市</option>
					<option did="2" value="天津市">天津市</option>
					<option did="3" value="河北省">河北省</option>
					<option did="4" value="山西省">山西省</option>
					<option did="5" value="内蒙古自治区">内蒙古自治区</option>
					<option did="6" value="辽宁省">辽宁省</option>
					<option did="7" value="吉林省">吉林省</option>
					<option did="8" value="黑龙江省">黑龙江省</option>
					<option did="9" value="上海市">上海市</option>
					<option did="10" value="江苏省">江苏省</option>
					<option did="11" value="浙江省">浙江省</option>
					<option did="12" value="安徽省">安徽省</option>
					<option did="13" value="福建省">福建省</option>
					<option did="14" value="江西省">江西省</option>
					<option did="15" value="山东省">山东省</option>
					<option did="16" value="河南省">河南省</option>
					<option did="17" value="湖北省">湖北省</option>
					<option did="18" value="湖南省">湖南省</option>
					<option did="19" value="广东省">广东省</option>
					<option did="20" value="广西壮族自治区">广西壮族自治区</option>
					<option did="21" value="海南省">海南省</option>
					<option did="22" value="重庆市">重庆市</option>
					<option did="23" value="四川省">四川省</option>
					<option did="24" value="贵州省">贵州省</option>
					<option did="25" value="云南省">云南省</option>
					<option did="26" value="西藏自治区">西藏自治区</option>
					<option did="27" value="陕西省">陕西省</option>
					<option did="28" value="甘肃省">甘肃省</option>
					<option did="29" value="青海省">青海省</option>
					<option did="30" value="宁夏回族自治区">宁夏回族自治区</option>
					<option did="31" value="新疆维吾尔自治区">新疆维吾尔自治区</option>
					<option did="32" value="台湾省">台湾省</option>
					<option did="33" value="香港特别行政区">香港特别行政区</option>
					<option did="34" value="澳门特别行政区">澳门特别行政区</option>
					<option did="35" value="海外">海外</option>
					<option did="36" value="其他">其他</option>
				
				</select>
			</div>

			<div class="main_site1_body">
				<input type="hidden" name="uid" value="{$valUserDetail['uid']}">
				<input class="btn" type="submit" value="提交">
			</div>
			{/foreach}
			{/if}
			
			</form>
		</div>
	</body>
</html>